import Https from "@/utils/Https";

//预约记录
export const getOrderRecordListFun = async (params) =>
  await Https.post("/book/record/recordList", params, true);
//取消预约
export const cancelRecordFun = async (params) =>
  await Https.get("/course/sched/cancelRecord", params, true);

export const addItemReq = async (params) =>
  await Https.post("/book/record/addRecord", params, true);
export const updateItemReq = async (params) =>
  await Https.post("/book/record/updateRecord", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/book/record/logicDeleteRecord", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/book/record/recordDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/tables", params, true);
